# -*- coding:utf-8 -*-
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from com.mat.rpa.views.workWindow.middlePanel.flowPanel import flowSettingDialog
class OpenWebPageObjectSettingDialog(flowSettingDialog.BasicFlowSettingDialog):
    def __init__(self, title, parent=None):
        super(OpenWebPageObjectSettingDialog, self).__init__(title, parent)
        #改变图片
        self.changeImage(flowSettingDialog.BasicFlowSettingDialog.picPath+"openWebPageBig.png")
        #布局指令输入面板
        self.directiveInputSettingLayout = QGridLayout()
        self.directiveInputSettingLayout.setContentsMargins(0,0,0,0)
        self.directiveInputSettingLayout.setSpacing(0)
        self.directiveInputSettingPanel.setLayout(self.directiveInputSettingLayout)
        self.browserTypeLabel = QLabel()
        self.browserTypeLabel.setText("浏览器类型:")
        self.directiveInputSettingLayout.addWidget(self.browserTypeLabel, 0,0,1,1,Qt.AlignRight)
        self.browserTypeCombobox = QComboBox()
        self.browserTypeCombobox.addItems(["RPA浏览器", "Google Chrome浏览器",
                                           "MicroSoft Edge浏览器", "Internet Explorer浏览器",
                                           "360安全浏览器"])
        self.directiveInputSettingLayout.addWidget(self.browserTypeCombobox, 0, 1, 1, 1, Qt.Center)
        self.browserTypeTipLabel = QLabel()


    #实现确认和取消按钮点击事件
    def handleQuestionBtnClicked(self):
        print("点击获取信息按钮")

    def handleConfirmBtnClicked(self):
        print("点击确认按钮")

    def handleCancelBtnClicked(self):
        print("点击取消按钮")

    #def handleExecutionBtnClicked(self): 根据情况实现指令执行按钮事件
    #   print("点击执行按钮)
